package ac.github.oa.api.common.script.action

import taboolib.common5.Coerce
import java.math.BigDecimal

object CompareSymbolGT : CompareSymbol {
    override val name: String
        get() = ">"

    override fun apply(decimal1: BigDecimal, decimal2: BigDecimal): Boolean {
        return decimal1.compareTo(decimal2) == 1
    }
    override fun handle(left: String, right: String): Boolean {
        return Coerce.toDouble(left) > Coerce.toDouble(right)
    }
}